package com.store.bookstore_backend.mapper;

import com.store.bookstore_backend.domain.Collect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 14111
 * @description 针对表【collect(收藏表)】的数据库操作Mapper
 * @createDate 2024-12-26 11:13:56
 * @Entity com.store.bookstore_backend.domain.Collect
 */
@Mapper
public interface CollectMapper {
    public List<Collect> selectByUserId(@Param("userId") Long userId);

    public void insert(Collect collect);

    public void delete(@Param("id") Integer id);

}

